#include<bits/stdc++.h>
using namespace std;

int main(int argc, char const *argv[])
{
    string str;
    cin>>str;
    int intArr[100]={0},arr[]={2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97},maxNum=0,minNum=100;
    for (int i = 0; i < str.size(); i++)
    {
        if(intArr[i]==0){
            intArr[i]++;
            for (int j = i+1; j < str.size(); j++)
            {
                if(str[i]==str[j])intArr[j] = ++intArr[i];
            }
            maxNum = maxNum>intArr[i]?maxNum:intArr[i];
            minNum = minNum<intArr[i]?minNum:intArr[i];
        }   
       
    }
    if(find(arr,arr+25,maxNum-minNum)==arr+25)cout<<"No Answer\n0";
    else cout<<"Lucky Word\n"<<maxNum-minNum;
    return 0;
}
